package qingma

import (
	"qm_system_server/server/api/v1"
	"qm_system_server/server/middleware"
	"github.com/gin-gonic/gin"
)

type QmCostRouter struct {
}

// InitQmCostRouter 初始化 qmCost表 路由信息
func (s *QmCostRouter) InitQmCostRouter(Router *gin.RouterGroup) {
	qmCostRouter := Router.Group("qmCost").Use(middleware.OperationRecord())
	qmCostRouterWithoutRecord := Router.Group("qmCost")
	var qmCostApi = v1.ApiGroupApp.QingmaApiGroup.QmCostApi
	{
		qmCostRouter.POST("createQmCost", qmCostApi.CreateQmCost)   // 新建qmCost表
		qmCostRouter.DELETE("deleteQmCost", qmCostApi.DeleteQmCost) // 删除qmCost表
		qmCostRouter.DELETE("deleteQmCostByIds", qmCostApi.DeleteQmCostByIds) // 批量删除qmCost表
		qmCostRouter.PUT("updateQmCost", qmCostApi.UpdateQmCost)    // 更新qmCost表
	}
	{
		qmCostRouterWithoutRecord.GET("findQmCost", qmCostApi.FindQmCost)        // 根据ID获取qmCost表
		qmCostRouterWithoutRecord.GET("getQmCostList", qmCostApi.GetQmCostList)  // 获取qmCost表列表
	}
}
